package del1;

public enum SignalColor {
	RED(false), YELLOW, GREEN;

	private boolean drivingAllowed = true;

	/*
	 * An empty constructor with the drivingAllowed set to default (true).
	 */
	SignalColor() {
	}

	/*
	 * A constructor which makes it possible to set the drivingAllowed.
	 */
	SignalColor(boolean drivingAllowed) {
		this.drivingAllowed = drivingAllowed;
	}

	public boolean drivingAllowed() {
		return drivingAllowed;
	}

}